package com.cet.lxf.collection.test02;

import java.util.List;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-08-04 09:56
 **/
public class Main {
    public static void main(String[] args) {
        List<String> list = List.of("A", "B", "C");
        System.out.println(list.contains("C"));
        System.out.println(list.indexOf("C"));

        System.out.println("===============");
        System.out.println(list.contains(new String("C")));
        System.out.println(list.indexOf(new String("C")));
    }
}
